Search

Nalezeno "optional chaining": 2

The Optional Chaining Operator, “Modern” Browsers, and My Mom


Jim Nielsen’s mom couldn’t open a website. Jim worked on confirming the issue and documented how he got to the bottom of it: “[…] well it can’t be a browser issue. It’s not like my Mom is using Internet Explorer! … The Optional Chaining Operator, “Modern” Browsers,...

Web Technologies and Syntax


JavaScript has a (newish) feature called optional chaining. Say I have code like: const name = Data.person.name; If person happens to not exist on Data, I’m going to get a hard, show-stopping error. With optional chaining, I can write: const name = Data.person?.name; Now if person...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace